﻿using AutofacProject.Entity;
using AutofacProject.Repository;
using AutofacProject.Repository.Interface;
using AutofacProject.Service.Interface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AutofacProject.Service
{
    public class MoviesService : IMoviesService
    {
        private readonly IMoviesRepository _moviesRepository;

        public MoviesService(IMoviesRepository moviesRepository) {

            _moviesRepository= moviesRepository;
        }


        public List<Movie> GetList()
        {
          return  _moviesRepository.GetList();
        }
    }
}
